/**
 * @see [微信官方文档](https://mp.weixin.qq.com/debug/wxadoc/dev/api/network-socket.html#wxonsocketmessagecallback)
 */
export default function on_socket_message() {
	return new Promise<wx.DataResponse>((resolve) => {
		wx.onSocketMessage((res) => {
			resolve(res);
		});
	});
}
